Alongside the color variables detailed above, we also provide a map of colors so
that you can programmatically use these values. This map is called $colors and
each key is the name of a swatch. The value of these swatches is also a map, but
each key is now the grade. In code, this looks like the following:
$colors: (
'blue': (
10: #edf4ff,
// ...
)
);
JavaScript
For JavaScript, you can import and use this module by doing the following in
your code:
We're always looking for contributors to help us fix bugs, build new features,
or help us improve the project documentation. If you're interested, definitely
check out our Contributing Guide! 👀
This package uses IBM Telemetry to collect de-identified and anonymized metrics
data. By installing this package as a dependency you are agreeing to telemetry
collection. To opt out, see
Opting out of IBM Telemetry data collection.
For more information on the data being collected, please see the
IBM Telemetry documentation.
Colors for digital and software products using the Carbon Design System
We found that @carbon/colors demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 13 open source maintainers collaborating on the project.
Package last updated on 24 Oct 2024
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.
GitHub removed 27 malicious pull requests attempting to inject harmful code across multiple open source repositories, in another round of low-effort attacks.